/*
 * LSM303D.hpp
 *
 *  Created on: Jun 23, 2016
 *      Author: Yang
 */

#ifndef LSM303D_HPP_
#define LSM303D_HPP_

#include "Maths/Maths.hpp"
#include "HAL/HAL.hpp"
#include "Console/Console.hpp"

class INERTIAL_SENSOR_LSM303D
{
public:
    INERTIAL_SENSOR_LSM303D(){}

    Vector3f accel;
    Vector3f mag;

    void Init(void);
    void Data_Refresh(void);
private:
    void WRITE(uint8_t Data, uint8_t RegAddress);
    void READ(uint8_t* Data, uint8_t RegAddress, uint8_t Len);
};

#endif /* LSM303D_HPP_ */
